import request from '@/utils/request'

// 查询吧台账单列表
export function listBills(query) {
  return request({
    url: '/project/pbills/list',
    method: 'get',
    params: query
  })
}

// 查询吧台账单详细
export function getBills(ID) {
  return request({
    url: '/project/pbills/' + ID,
    method: 'get'
  })
}

// 新增吧台账单
export function addBills(data) {
  return request({
    url: '/project/pbills',
    method: 'post',
    data: data
  })
}

// 修改吧台账单
export function updateBills(data) {
  return request({
    url: '/project/pbills',
    method: 'put',
    data: data
  })
}


// 修改吧台账单
export function ppp(data) {
  return request({
    url: '/project/pbills/pp',
    method: 'put',
    data: data
  })
}
// 修改吧台账单
export function ppp1(data) {
  return request({
    url: '/project/pbills/pp1',
    method: 'put',
    data: data
  })
}


// 删除吧台账单
export function delBills(ID) {
  return request({
    url: '/project/pbills/' + ID,
    method: 'delete'
  })
}
